package com.dycx.cms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dycx.common.dto.VideoInfoDTO;
import com.dycx.common.dto.handler.FieldsDtoListTypeHandler;
import com.dycx.common.dto.handler.VideoInfoTypeHandler;
import com.dycx.common.entity.CommonDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "cms_article", autoResultMap = true)
public class ArticleDO extends CommonDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * id
    */
    private Integer id;

    private Integer articleTypeId;

    /**
     * 物流名称
     */
    private String title;
    private String summary;
    private String thumbnail;
    private String video;

    @TableField(typeHandler = VideoInfoTypeHandler.class)
    private VideoInfoDTO videoInfo;
    private Boolean status;
    private Integer hits;


}
